package com.example.androiddemo;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

public class Lesson3Activity extends AppCompatActivity implements View.OnClickListener {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_lesson3);
        findViewById(R.id.lesson3_2).setOnClickListener(this);
        findViewById(R.id.lesson3_3).setOnClickListener(this);
    }
    @Override
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.lesson3_2:
                startActivity(new Intent(this,Lesson3_2Activity.class));
                break;
            case R.id.lesson3_3:
                startActivity(new Intent(this,Lesson3_3Activity.class));
                break;
        }

    }
}
